package com.rowenci.iot_agriculture.service.api;

import com.rowenci.iot_agriculture.bean.Greenhouse;

import java.util.List;
import java.util.Optional;

public interface GreenhouseService {

    List<Greenhouse> findAll();

    Optional<Greenhouse> findById(Integer id);

    Greenhouse findByNumber(Integer number);

    void updateIlluminanceByHouse_id(Integer house_id, Integer illuminance);

    void updateTemphumiByHouse_id(Integer house_id, Integer tempature, Integer humidity);

    void updateVegetableByHouse_id(Integer house_id, String vegetable);

    void addGreenHouse(Greenhouse greenhouse);

    boolean delByHouse_id(Integer house_id);

}
